package ch4.ex10_11;

import static ch4.print.Print.*;

class Book {
	Book(){
		println("Created object.");
	}
	protected void finalize(){
		println("finalize() works!");
	}
}

public class Finalize {

	public static void main(String[] args){
		//Book b = new Book();
		new Book();
		System.gc();
		System.runFinalization();
	}
	
}
